<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@page import="com.hz.model.Service"%>
 <%
      request.setCharacterEncoding("UTF-8");
      ArrayList<Service> servelist = new ArrayList<Service>();
     
      servelist = (ArrayList)session.getAttribute("servelist");
      Service de = new Service();
	  int id =Integer.parseInt(request.getParameter("id"));
	  System.out.println(id);
	  servelist.remove(id);
	  boolean isSuccess = true;
	  String returnJson = "{\"status\":\"" + (isSuccess ?  1 : 0) + "\"}";
	  session.setAttribute("servelist",servelist);
	  System.out.print(returnJson);
	  Collection<Service>l = (ArrayList)session.getAttribute("servelist");
	  //System.out.print(l.size());
  %>
 <%=returnJson %>